/*******************************************************************************
 * @project: PPMS
 * @package: com.burns.ppms.ui
 * @file: PropertiesUI.java
 * @author: Administrator
 * @created: 2017年6月9日
 * @purpose:
 * 
 * @version: 1.0
 * 
 * Revision History at the end of file.
 * 
 * Copyright 2017 AcconSys All rights reserved.
 ******************************************************************************/

package com.burns.ppms.ui;

import java.awt.Button;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class PropertiesUI {

	public static void main(String args[]) {
		// Create a frame
		Frame frame = new Frame("Example of TableLayout");
		frame.setBounds(100, 100, 300, 300);

		// Create a TableLayout for the frame
		double border = 10;
//		double size[][] = { { border, 0.10, 20, TableLayout.FILL, 20, 0.20, border }, // Columns
//				{ border, 0.20, 20, TableLayout.FILL, 20, 0.20, border } }; // Rows
//		// 10,40,20, 60 ,20,40,10
//
//		frame.setLayout(new TableLayout(size));

		// Create some buttons
		String label[] = { "Top", "Bottom", "Left", "Right", "Center", "Overlap" };
		Button button[] = new Button[label.length];

		for (int i = 0; i < label.length; i++)
			button[i] = new Button(label[i]);

		// Add buttons
		frame.add(button[0], "1, 1, 5, 1"); // Top
		frame.add(button[1], "1, 5, 5, 5"); // Bottom
		frame.add(button[2], "1, 3      "); // Left
		frame.add(button[3], "5, 3      "); // Right
		frame.add(button[4], "3, 3, c, c"); // Center
		frame.add(button[5], "3, 3, 3, 5"); // Overlap

		// Allow user to close the window to terminate the program
		frame.addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		});

		// Show frame
		frame.show();
	}

}

/*******************************************************************************
 * <B>Revision History</B><BR>
 * [type 'revision' and press Alt + / to insert revision block]<BR>
 * 
 * 
 * 
 * Copyright 2017 AcconSys All rights reserved.
 ******************************************************************************/